package com.zhangtai.Neusoft.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhangtai.Neusoft.entity.NeusfotEmployeeChange;
import com.zhangtai.Neusoft.vo.ChangeListVo;
//import com.zhangtai.modules.dao.ssqlDao.JobDaoMssql;
import com.zhangtai.utils.PageResult;
import com.zhangtai.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

@RestController
@Slf4j
@Api(tags="东软人员异动")
@RequestMapping("/neusoft")
public class NeusoftEmployeeChangeController {
//    @Autowired
//    private JobDaoMssql jobDaoMssql;
//
//    @PostMapping("/getEmployeeChange")
//    @ApiOperation("员工异动记录")
//    public R<PageResult<NeusfotEmployeeChange>> getEmployeeChange(@RequestBody @Valid ChangeListVo vo){
//        IPage<NeusfotEmployeeChange> page = new Page<>(vo.getPageNum(),vo.getPageSize());
//        List<NeusfotEmployeeChange> list = jobDaoMssql.getEmployeeChangeList(vo.getCode(),vo.getStartTime(),vo.getEndTime(),page);
//        page.setRecords(list);
//        return R.ok(new PageResult<NeusfotEmployeeChange>(page));
//    }
//
//    @PostMapping("/getNodeList")
//    @ApiOperation("员工节点")
//    public R<List<NeusfotEmployeeChange>> getNodeList(@RequestBody @Valid ChangeListVo vo){
//        List<NeusfotEmployeeChange> list = jobDaoMssql.getEmployeeNode(vo.getCode());
//        return R.ok(list);
//    }
}
